import fetch from '../network-base'

export const userApi = { 
  // getData: params => fetch({method: 'GET', url: '/api/getdata', params}),
  // postData: data => fetch({method: 'POST', url: '/api/postdata', data}),
  login: data => fetch({ method: 'POST', url: '/user/login', data }),
  refresh: data => fetch({ method: 'POST', url: '/user/refresh', data })
}